/*
 * @Descripttion : 
 * @version      : 
 * @Author       : zero
 * @Date         : 2021-06-06 08:52:45
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2021-06-17 13:17:59
 */
// const path = require('path')
// const debug = process.env.NODE_ENV !== 'production'
module.exports = {
    publicPath: './', // 根域上下文目录
    outputDir: 'dist', // 构建输出目录
    assetsDir: 'assets', // 静态资源目录 (js, css, img, fonts)
    lintOnSave: false, //是否开启eslint
    devServer: {
        open: true, //是否自动弹出浏览器页面
        host: "localhost",
        port: '8083',
        https: false,
        hotOnly: false,
        proxy: {
            '/api': {
                target: 'https://www.chipsvip.vip/api/', //API服务器的地址
                ws: false,  //代理websockets
                changeOrigin: true, // 虚拟的站点需要更管origin
                pathRewrite: {   //重写路径 
                    '^/api': ''
                }
            }
        },
    }

}

